import React, {Component} from 'react';
import './App.css'
import {Button, DatePicker} from 'antd';
import {
    WechatOutlined
} from '@ant-design/icons';
import {ConfigProvider} from 'antd';

class App extends Component {
    onChange = (date, dateString) => {
        console.log(date, dateString);
    }

    render() {
        return (
            <ConfigProvider
                theme={{token: {colorPrimary: '#00b96b'}}}
            >
                <div>
                    <Button type="primary">Primary</Button>
                    <WechatOutlined/>
                    <DatePicker onChange={this.onChange}/>
                </div>
            </ConfigProvider>
        );
    }
}

export default App;